package day04;

public class WhileDemo {
    public static void main(String[] args) {
        int times = 0;
        while (times<5){
            System.out.println("失败是成功的阶梯");
            times++;
        }

        int num = 1;
        while (num<=9){
            System.out.println(num+"*9="+num*9);
            num++;
        }
        /*
        代数 num = 1    1<9      true
                  2    2<9      true
                  3    3<9      true
                  4    4<9      true
                  5    5<9      true
                  6    6<9      true
                  7    7<9      true
                  8    8<9      true
                  9    9=9      true
                  10   10>9     false   while循环结束
                  输出继续执行
        */


    }
}
